package collections.lecture18;

import java.util.HashSet;
import java.util.List;

import static java.util.Arrays.asList;

/**
 * Created with IntelliJ IDEA.
 * User: Bogdan
 * Date: 24.03.13
 * Time: 16:24
 * To change this template use File | Settings | File Templates.
 */
public class PointTest {
    public static void main(String[] args) {
        HashSet<Point> set = new HashSet<>();
        set.add(new Point(1,2));
            System.out.println(set.contains(new Point(1,2)));
        System.out.println(set.contains(new Point(2,1)));

        List list = asList("A", "B", "A", "AB", "B");
        System.out.println(new HashSet(list).size());
        System.out.println("Face");
    }
}
